package pro.cherish.demojunit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import pro.cherish.demojunit.listener.EnvironmentPreparedListener;

@SpringBootApplication
public class KnowledgeDemoJunitApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplicationBuilder(KnowledgeDemoJunitApplication.class).build(args);
        //添加监听器
        app.addListeners(new EnvironmentPreparedListener());
        app.run(args);
    }

}
